Depicter\Database\Repository\DocumentRepository D

Total Complexity 129
Dependencies 8
Dependents 3
Total lines 923
Lines of code 453
Logical lines of code 244
Comment lines 327
Methods 42
Properties 1

Methods 42

Method Rating Maintainability Complexity Lines of code
getList()
B
39 19 57
duplicate()
A
47 11 36
saveEditorData()
A
47 9 37
revert()
A
50 8 26
makeSlug()
S
59 5 15
findOne()
S
58 5 15
getContent()
S
60 5 13
getConditionalDocumentIDs()
S
52 4 27
getLastPublishedAt()
S
67 4 7
update()
S
63 4 10
addRevision()
S
62 3 11
delete()
S
62 3 11
draftFields()
S
55 2 18
isPublishedBefore()
S
65 3 10
changeSlug()
S
65 3 9
changeRevisionsStatus()
S
64 3 9
find()
S
67 3 7
checkSlug()
S
63 2 11
getRevisionsID()
S
73 2 4
isPublished()
S
69 2 7
getFieldValue()
S
71 2 6
checkRevisionsLimit()
S
69 2 6
getCurrentUserId()
S
79 2 3
defaultFields()
S
59 1 15
getStatus()
S
69 2 7
rename()
S
71 2 6
select()
S
72 2 4
getPreviewImageUrl()
S
70 2 6
create()
S
60 1 13
getPreviewImagePath()
S
79 1 3
savePreviewImage()
S
72 1 6
getPreviewRelativeImagePath()
S
80 1 3
all()
S
81 1 3
getParsedEditorContent()
S
75 1 4
getRecentRevision()
S
73 1 4
getMergedFields()
S
74 1 4
document()
S
81 1 3
getLastDocument()
S
79 1 3
findOrCreate()
S
75 1 4
findById()
S
80 1 3
save()
S
76 1 4
__construct()
S
80 1 3